package cn.cloud9.activiti7;

import org.activiti.engine.*;
import org.junit.Before;

/**
 * @author OnCloud9
 * @description
 * @project activiti7
 * @date 2022年08月21日 上午 10:24
 */
public class ActivitiBase {
    protected ProcessEngine processEngine;
    protected RepositoryService repositoryService;
    protected RuntimeService runtimeService;
    protected TaskService taskService;
    protected HistoryService historyService;
    protected ManagementService managementService;

    /**
     * 初始化预备资源
     */
    public ActivitiBase() {
        processEngine = ProcessEngines.getDefaultProcessEngine();
        repositoryService = processEngine.getRepositoryService();
        runtimeService = processEngine.getRuntimeService();
        taskService = processEngine.getTaskService();
        historyService = processEngine.getHistoryService();
        managementService = processEngine.getManagementService();
    }
}
